﻿using WYT.Ord.Application.Contracts.Services;

namespace WYT.Ord.WebApi
{
    public class OrdHangfireJobService
    {
        private readonly IOrderTaskAppService _ordAppService;
        public OrdHangfireJobService(IOrderTaskAppService ordAppService)
        {
            _ordAppService = ordAppService;
        }

        /// <summary>
        /// 支付单超期检查
        /// </summary>
        public void ReceivingCheck()
        {
            Task.Run(() => _ordAppService.OrderCheck()).Wait();
        }
    }
}
